package com.study.course.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.study.common.annotation.Excel;
import com.study.common.core.domain.BaseEntity;

/**
 * 课程信息对象 sys_course
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
public class SysCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程编号（唯一） */
    private String courseId;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 学分（1-10） */
    @Excel(name = "学分", readConverterExp = "1=-10")
    private Integer credit;

    /** 授课教师（关联用户表） */
    @Excel(name = "授课教师", readConverterExp = "关=联用户表")
    private Long teacherId;

    private String academy;

    public void setCourseId(String courseId) 
    {
        this.courseId = courseId;
    }

    public String getCourseId() 
    {
        return courseId;
    }

    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }

    public void setCredit(Integer credit) 
    {
        this.credit = credit;
    }

    public Integer getCredit() 
    {
        return credit;
    }

    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("credit", getCredit())
            .append("teacherId", getTeacherId())
                .append("academy", getAcademy())
            .toString();
    }

    public String getAcademy() {
        return academy;
    }

    public void setAcademy(String academy) {
        this.academy = academy;
    }
}
